package com.heh.mybatisplus.controller;

import com.heh.mybatisplus.mapper.BLoanInfoMapper;
import com.heh.mybatisplus.model.BLoanInfo;
import com.heh.mybatisplus.model.Result;
import com.heh.mybatisplus.service.BLoanInfoService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
//@Schema(description = "BLoanInfo模块")
public class BLoanInfoController {
    @Autowired
    private BLoanInfoService bLoanInfoService;

    /**
     * ?
     * @return
     */
//    @Operation(description = "getBLoanInfo")
    @Operation(summary = "获取BLoan信息", description = "获取所有BLoan的信息")
    @GetMapping("/getBLoanInfo")
    public Result<List<BLoanInfo>> getBLoanInfo() {
        List<BLoanInfo> list = bLoanInfoService.list();
        return Result.success(list);
    }
}
